PROG?=main

all: $(PROG) ../../../lib/libxbee.so
	LD_LIBRARY_PATH=../../../lib ./$(PROG)

new: clean all

clean:
	-rm $(PROG)

$(PROG): $(PROG).c
	gcc $^ -g -o $@ -I ../../.. -L ../../../lib -lxbee -lpthread -lrt
